package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface PaymentInfoService extends IService<PaymentInfo> {
    PaymentInfo getPaymentInfoByOutTrade(String outTradeNo, String payType);

    PaymentInfo getPaymentInfoByOutTradeAndType(String outTradeNo, String toString);

    void updatePaymentInfoStatus(PaymentInfo paymentInfo);

    boolean checkPayStatusRemote(String outTradeNo);

    boolean closePay(String outTradeNo);

    boolean closePaymentInfo(String outTradeNo);
}
